{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>EditBlog</title>
    <script src="{% url '/static/tinymce/tinymce.min.js' %}"></script>
    <script type="text/javascript">
        tinymce.init({
            'selector': '#rich_text',
            'inline': true,
            'plugins': 'advlist autolink link image lists preview',
            'toolbar': 'undo redo | styleselect | bold italic | link image',
            'menubar': 'file edit',
            'mode': "textareas",
            'theme': "advanced",
            'width': 800,
            'height': 600
        })
    </script>
</head>
<body>

<form action="{% url 'app:edit_blog' %}" method="post">
    {% csrf_token %}
    <textarea id="rich_text" name="content" cols="30" rows="10"></textarea>
    <button>保存</button>
</form>

</body>
</html>